home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / A.D. Software / OOFILE 1.3b4d6.sit / OOFILE 1.3b4d6 / OOFRep demo / RepTestApp.h < prev    next >
Text File  |  1997-03-16  |  1KB  |  53 lines

  1. #ifndef H_REPTSTAPP
  2. #define H_REPTSTAPP
  3.  
  4. // ===========================================================================
  5. //    GrTstApp.h                    Derived heavily from the Dashboard Starter
  6. // ===========================================================================
  7.  
  8. #include <LApplication.h>
  9.  
  10. #include "oofile.h"
  11. #include "oofrep.h"
  12. #include "ooftst02.h"
  13.  
  14. // Test data for GraphBand
  15.  
  16. DECLARE_CLASS(dbStudent)
  17.     dbChar        Name, Subject;
  18.     dbLong        Mark;
  19.  
  20.     dbStudent() :
  21.                 dbTable("Students"),
  22.                 Name(39, "Name", kIndexCompress),
  23.                 Subject(79, "Subject", kIndexCompress),
  24.                 Mark("Mark", kIndexed)
  25.                 {};
  26.     
  27. // my own data entry procedures
  28.     void Add(const char *name, const char *subject, const long mark);
  29.     void AddTestData();
  30. };
  31.  
  32. class    oofRepWindow;
  33. class    LWindow;
  34. class    RepTestApp : public LApplication {
  35. public:
  36.                         RepTestApp();
  37.     virtual             ~RepTestApp();
  38.     
  39.     virtual Boolean        ObeyCommand(CommandT inCommand, void *ioParam = nil);
  40.     virtual void        FindCommandStatus(CommandT inCommand,
  41.                             Boolean &outEnabled, Boolean &outUsesMark,
  42.                             Char16 &outMark, Str255 outName);
  43.     virtual void        Initialize();
  44.  
  45.     dbConnect_ram    theDB;
  46.     dbPatients         Patients;
  47.     dbVisits        Visits;
  48.     dbStudent        Students;
  49.     dbRelationship     *PatientVisits;
  50. };
  51.  
  52. #endif
  53.